<?php
$destino = "http://api.ean.com/ean-services/ws/hotel/v3?wsdl&apiKey=t9grpd33pwudkegxpdrq6xp5";
$objClient = new SoapClient($destino, array('trace' => true,'exceptions' => 0, 'encoding' => 'UTF-8'));
$xml = '<v3:getAvailability>
         <HotelRoomAvailabilityRequest>
            <apiKey>t9grpd33pwudkegxpdrq6xp5</apiKey>
            <cid>55505</cid>
            <minorRev>9</minorRev>
            <customerIpAddress></customerIpAddress>
            <customerSessionId></customerSessionId>
            <customerUserAgent></customerUserAgent>
            <locale>en_US</locale>
            <currencyCode>USD</currencyCode>
            <hotelId>404909</hotelId>
            <arrivalDate>09/03/2013</arrivalDate>
            <departureDate>09/04/2013</departureDate> 
            <RoomGroup>
               <Room>
                  <numberOfAdults>2</numberOfAdults>
                  <numberOfChildren>0</numberOfChildren>
               </Room>
            </RoomGroup>
            <includeRoomImages>true</includeRoomImages>
         </HotelRoomAvailabilityRequest>
      </v3:getAvailability>';

$soapvar = new SoapVar($xml, XSD_ANYXML);
$objResponse = $objClient->__soapCall("getAvailability", array($soapvar));
$response = $objClient->__getLastResponse();
echo $response;
//$xml = simplexml_load_string($response, NULL, NULL, "http://schemas.xmlsoap.org/soap/envelope/");
//$xml->registerXPathNamespace('soapenv', 'http://schemas.xmlsoap.org/soap/envelope/');
//$xml->registerXPathNamespace('ns1', 'http://v3.hotel.wsapi.ean.com/');
//echo var_dump($xml);
?>
<?php 
//$hotels = $xml->xpath('//ns1:getAvailabilityResponse');
?>
<pre><?php //print_r($hotels); ?></pre>
